package com.xzz;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author 黄会准
 * @since 2020-11-10
 */
public class FindMedianSortedArrays {
    public static void main(String[] args) {
        int[] nums1 = {1,3};
        int[] nums2 = {2,7};
        System.out.println(findMedianSortedArrays(nums1,nums2));
        String str = "dasdada-1";
        System.out.println(str.substring(0,str.lastIndexOf('-')));
        List<String> stringList = Arrays.asList("无","1","2");
        List<String> collect = stringList.stream().filter(a -> !"无".equals(a)).collect(Collectors.toList());
        System.out.println(collect);


    }
    public static double findMedianSortedArrays(int[] nums1, int[] nums2) {
        int[] nums3 =  new int[nums1.length+nums2.length];
        for(int i=0;i<nums1.length;i++){

        }
        return 0l;
    }
}
